package com.jingtai.shop.webfacade.bo.store;

import cn.hutool.core.util.ObjectUtil;
import com.jingtai.common.webfacade.BaseBO;
import com.jingtai.common.webfacade.error.CommonException;
import com.jingtai.common.webfacade.error.ErrorEnum;
import lombok.Data;

@Data
public class StoreDetailsBO extends BaseBO {

    /**
     * 店铺主键id
     */
    private Long storeId;

    /**
     * 商品标题
     */
    private String goodsTitle;

    @Override
    public void validate() {
        super.validate();
        if (ObjectUtil.isEmpty(storeId)) {
            throw new CommonException(ErrorEnum.REQUIRED_PARAM_EMPTY);
        }
    }
}
